﻿@model YogaStudio.Data.Domain.WaiverRequest
@using YogaStudio.Data.Domain

@{
    ViewBag.Title = "ReqChgWaiverStatus";
    var statusToString = new Dictionary<WaiverRequestStatus, string>()
    {
         {WaiverRequestStatus.Approved, "Approving"},
         {WaiverRequestStatus.Rejected, "Rejecting"}
    };
}

<style type="text/css">
    table.table-borderless tr>td {
        padding-right: 40px;
    }
</style>

<div class="main">
    <div class="content">
        <div class="section group">
            <div class="col span_2_of_3">
                <div class="contact-form">
                    <h3>@statusToString[ViewBag.status] Waiver Request</h3>
                    @using (Html.BeginForm())
                    {
                        @Html.AntiForgeryToken()

                        <div class="form-horizontal">
                            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                            @Html.HiddenFor(model => model.Id)
                            <table class="table-borderless">
                                <tr>
                                    <td>
                                        <div class="form-group">
                                            @Html.LabelFor(model => model.Customer.FullName, htmlAttributes: new { @class = "control-label col-md-2" })
                                            <div class="col-md-10 form-control-static">
                                                @Html.DisplayFor(model => model.Customer.FullName)
                                            </div>
                                        </div>
                                    </td>
                                    <td>
                                        <div class="form-group">
                                            @Html.LabelFor(model => model.Course, htmlAttributes: new { @class = "control-label col-md-2" })
                                            <div class="col-md-10 form-control-static">
                                                @Html.DisplayFor(model => model.Course.CourseName)
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            

                            

                            <div class="form-group">
                                @Html.LabelFor(model => model.Reason, htmlAttributes: new { @class = "control-label col-md-2" })
                                <div class="col-md-10 form-control-static">
                                    @Html.DisplayFor(model => model.Reason)
                                    @*@Html.EditorFor(model => model.Reason, new { htmlAttributes = new { @class = "form-control" } })
                                        @Html.ValidationMessageFor(model => model.Reason, "", new { @class = "text-danger" })*@
                                </div>
                            </div>

                            <div class="form-group">
                                @Html.Label("", "Faculty's response", new { @class = "control-label col-md-2" })
                                <div class="col-md-10">
                                    @Html.EditorFor(model => model.ResponseReason, new { htmlAttributes = new { @class = "form-control" } })
                                    @Html.ValidationMessageFor(model => model.ResponseReason, "", new { @class = "text-danger" })
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-md-offset-2 col-md-10">
                                    <input type="submit" value="Save" class="btn btn-default" />                                    
                                    @Html.ActionLink("Back to List", "AllWaivers", null, new { @class = "btn", @id = "bluebck" })
                                </div>
                            </div>
                        </div>
                    }

                </div>
            </div>
        </div>
    </div>
</div>
